﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace SewerAPI.Core
{
    /// <summary>
    /// A public message to broadcast to all receivers
    /// </summary>
    public class PublicMessage : Message
    {
        public PublicMessage(string text) : base(text)
        {

        }
        
        #region Abstract Implementation

        public override MessageType GetMessageType()
        {
            return MessageType.Public;
        }

        public override System.Net.IPEndPoint GetTo()
        {
            return new IPEndPoint(IPAddress.Broadcast, Configuration.Port);
        }

        #endregion
    }
}
